package com.party.mapper;

import com.party.model.VotePerson;
import com.party.model.VotePersonExample;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface VotePersonMapper {
    int countByExample(VotePersonExample example);

    int deleteByExample(VotePersonExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(VotePerson record);

    int insertSelective(VotePerson record);

    List<VotePerson> selectByExample(VotePersonExample example);

    VotePerson selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") VotePerson record, @Param("example") VotePersonExample example);

    int updateByExample(@Param("record") VotePerson record, @Param("example") VotePersonExample example);

    int updateByPrimaryKeySelective(VotePerson record);

    int updateByPrimaryKey(VotePerson record);

    /**
     * 自定义方法
     */

    /**
     * 自定义方法
     */
    int countByVotePerson(VotePerson votePerson);

    public List<VotePerson> getListPage(VotePersonExample example);

    public List<VotePerson> getAllVotePerson(VotePersonExample example);

    public List<VotePerson> getListPageByCustorm(VotePerson votePerson);

    public VotePerson getVotePersonByUid(VotePerson votePerson);

    public List<VotePerson> getAllVotePersonByVoteId(VotePerson votePerson);
}